define({ "api": [
  {
    "type": "post",
    "url": "/category/add",
    "title": "分类添加",
    "name": "categoryAdd",
    "group": "Category",
    "description": "<p>添加菜品分类</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>分类名称</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "desc",
            "defaultValue": "暂无描述",
            "description": "<p>分类描述</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "添加成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"categoryId\": \"5c4be6f9751906b9606218c8\"\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "未登录",
          "content": "{\n    \"code\": -1,\n    \"errMsg\": \"请先登录\"\n}",
          "type": "json"
        },
        {
          "title": "重复添加",
          "content": "{\n    \"code\": 0,\n    \"errMsg\": \"当前分类已存在, 请勿重复添加\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/category.js",
    "groupTitle": "Category"
  },
  {
    "type": "post",
    "url": "/category/delete",
    "title": "分类删除",
    "name": "categoryDelete",
    "group": "Category",
    "description": "<p>分类删除</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>分类id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "删除成功",
          "content": "{\n        \"code\": 1,\n        \"data\": \"删除成功\",\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "分类不存在",
          "content": "{\n        \"code\": 0,\n        \"errMsg\": \"当前分类不存在\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/category.js",
    "groupTitle": "Category"
  },
  {
    "type": "get",
    "url": "/category/list",
    "title": "分类列表查询",
    "name": "categoryList",
    "group": "Category",
    "description": "<p>所有分类列表查询</p>",
    "success": {
      "examples": [
        {
          "title": "添加成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"list\": [\n              {\n                  \"id\": \"5c4be1ba45b939b6a4f557b4\",\n                  \"name\": \"本土推荐\",\n                  \"desc\": \"目前仅支持xxx地区用户\",\n                  \"createTime\": \"2019-01-26T04:27:38.574Z\",\n                  \"updateTime\": \"2019-01-26T04:27:38.574Z\"\n              },\n              {\n                  \"id\": \"5c4be29927bbd3b75808d32d\",\n                  \"name\": \"本土推荐1\",\n                  \"desc\": \"目前仅支持xxx地区用户\",\n                  \"createTime\": \"2019-01-26T04:31:21.576Z\",\n                  \"updateTime\": \"2019-01-26T04:31:21.576Z\"\n              }\n          ],\n          \"total\": 2\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/category.js",
    "groupTitle": "Category"
  },
  {
    "type": "post",
    "url": "/category/update",
    "title": "分类修改",
    "name": "categoryUpdate",
    "group": "Category",
    "description": "<p>分类修改</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>分类id</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>分类名称</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "desc",
            "defaultValue": "暂无描述",
            "description": "<p>分类描述</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"categoryId\": \"5c4be6f9751906b9606218c8\"\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "未登录",
          "content": "{\n    \"code\": -1,\n    \"errMsg\": \"请先登录\"\n}",
          "type": "json"
        },
        {
          "title": "添加失败",
          "content": "{\n    \"code\": 0,\n    \"errMsg\": \"当前分类已存在\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/category.js",
    "groupTitle": "Category"
  },
  {
    "type": "post",
    "url": "/system",
    "title": "获取系统基本信息",
    "name": "system",
    "group": "Common",
    "success": {
      "examples": [
        {
          "title": "Success:",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"version\": \"0.0.1\",\n            \"sysname\": \"xxx系统\"\n        },\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/home.js",
    "groupTitle": "Common"
  },
  {
    "type": "post",
    "url": "/",
    "title": "测试API",
    "name": "test",
    "group": "Common",
    "success": {
      "examples": [
        {
          "title": "Success:",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"message\": \"欢迎进入xxx系统. 当前时间: Sun, 27 Jan 2019 07:25:23 GMT.\"\n        },\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/home.js",
    "groupTitle": "Common"
  },
  {
    "type": "post",
    "url": "/image/delete",
    "title": "图片删除",
    "name": "imageDelete",
    "group": "Image",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>图片id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success:",
          "content": "{\n    \"code\": 1,\n    \"data\": \"1\",\n    \"msg\": \"删除成功\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/image.js",
    "groupTitle": "Image"
  },
  {
    "type": "get",
    "url": "/image/query?group=default&pageNum=1&pageSize=10",
    "title": "图片分组查询",
    "name": "imageQuery",
    "group": "Image",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "group",
            "defaultValue": "default",
            "description": "<p>图片分组名称</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageNum",
            "defaultValue": "1",
            "description": "<p>页数</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageSize",
            "defaultValue": "10",
            "description": "<p>每页显示条数</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success:",
          "content": "{\n    \"code\": 1,\n    \"data\": {\n        \"list\": [\n            {\n                \"id\": \"5c540a7baa7eaa1cc2e49b03\",\n                \"url\": \"http://47.104.160.105:3030/upload/195a03f8ebc44f915db6227a53c1654b.png\",\n                \"name\": \"默认\",\n                \"group\": \"default\",\n                \"createtime\": \"2019-02-01T08:59:39.123Z\"\n            }\n        ],\n        \"totalCount\": 1\n    },\n    \"msg\": \"查询成功\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/image.js",
    "groupTitle": "Image"
  },
  {
    "type": "post",
    "url": "/image/upload",
    "title": "图片上传",
    "name": "upload",
    "group": "Image",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "File",
            "optional": false,
            "field": "file",
            "description": "<p>图片上传</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "group",
            "defaultValue": "default",
            "description": "<p>图片分组名称  可选项:</p> <ul> <li>default -&gt; 默认分组</li> <li>menu -&gt; 菜品图片</li> <li>avatar -&gt; 用户头像</li> </ul>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "name",
            "description": "<p>图片名称或描述</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success:",
          "content": "{\n    \"code\": 1,\n    \"data\": {\n        \"url\": \"http://47.104.160.105:3030/upload/4477231a362fc585d9a2e2ce0e04314b.jpg\",\n        \"group\": \"default\",\n        \"name\": \"用户头像\"\n    },\n    \"msg\": \"上传成功\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/image.js",
    "groupTitle": "Image"
  },
  {
    "type": "post",
    "url": "/menu/delete",
    "title": "菜品删除",
    "name": "MenuDelete",
    "group": "Menu",
    "description": "<p>菜品删除</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>菜品id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "删除成功",
          "content": "{\n        \"code\": 1,\n        \"data\": \"删除成功\",\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/menu.js",
    "groupTitle": "Menu"
  },
  {
    "type": "get",
    "url": "/menu/getlist?cid=5c4faaa8a1068c20dd01feb7&pageNum=1&pageSize=2",
    "title": "菜品列表查询",
    "name": "getListByCid",
    "group": "Menu",
    "description": "<p>所有菜品查询</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "cid",
            "description": "<p>菜品分类</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageNum",
            "defaultValue": "1",
            "description": "<p>页数</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageSize",
            "defaultValue": "10",
            "description": "<p>每页显示条数</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"list\": [\n                {\n                    \"_id\": \"5c504ab394bcc35c1b9fe836\",\n                    \"name\": \"香辣牛肉面1===\",\n                    \"cid\": \"5c4faaa8a1068c20dd01feb7\",\n                    \"price\": \"198\",\n                    \"desc\": \"暂无描述\",\n                    \"img\": \"http://127.0.0.1:3030/img/default.jpg\",\n                    \"updateTime\": \"2019-01-29T13:26:14.224Z\"\n                },\n                {\n                    \"_id\": \"5c504afc94bcc35c1b9fe838\",\n                    \"name\": \"清炒土豆丝\",\n                    \"cid\": \"5c4faaa8a1068c20dd01feb7\",\n                    \"price\": \"60\",\n                    \"desc\": \"暂无描述\",\n                    \"img\": \"http://127.0.0.1:3030/img/tudou.jpg\",\n                    \"updateTime\": \"2019-01-29T12:45:48.847Z\"\n                }\n            ],\n            \"totalCount\": 3\n        },\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/menu.js",
    "groupTitle": "Menu"
  },
  {
    "type": "post",
    "url": "/menu/add",
    "title": "菜品添加",
    "name": "menuAdd",
    "group": "Menu",
    "description": "<p>添加菜品</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>菜品名称</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "cid",
            "description": "<p>菜品分类id</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "price",
            "description": "<p>价格</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "desc",
            "defaultValue": "暂无描述",
            "description": "<p>分类描述</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "img",
            "defaultValue": "/img/default.jpg",
            "description": "<p>菜品图片</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "添加成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"categoryId\": \"5c4be6f9751906b9606218c8\"\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "未登录",
          "content": "{\n    \"code\": -1,\n    \"errMsg\": \"请先登录\"\n}",
          "type": "json"
        },
        {
          "title": "重复添加",
          "content": "{\n    \"code\": 0,\n    \"errMsg\": \"当前分类已存在, 请勿重复添加\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/menu.js",
    "groupTitle": "Menu"
  },
  {
    "type": "post",
    "url": "/menu/update",
    "title": "菜品修改",
    "name": "menuUpdate",
    "group": "Menu",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "cid",
            "description": "<p>分类id</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>菜品id</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>名称</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "desc",
            "description": "<p>描述</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "price",
            "description": "<p>价格</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": true,
            "field": "img",
            "defaultValue": "/img/default.jpg",
            "description": "<p>图片</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"id\": \"5c504ab394bcc35c1b9fe836\",\n            \"name\": \"香辣牛肉面1===\",\n            \"cid\": \"5c4faaa8a1068c20dd01feb7\",\n            \"price\": \"198\",\n            \"desc\": \"暂无描述\",\n            \"img\": \"http://127.0.0.1:3030/img/default.jpg\",\n            \"updateTime\": \"2019-01-29T15:25:43.175Z\"\n        },\n        \"msg\": \"更新成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/menu.js",
    "groupTitle": "Menu"
  },
  {
    "type": "get",
    "url": "/order/clist?pageNum=2&pageSize=2",
    "title": "获取所有菜品",
    "name": "OrderList",
    "group": "Order",
    "description": "<p>所有正在进行中订单查询</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageNum",
            "defaultValue": "1",
            "description": "<p>页数</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageSize",
            "defaultValue": "10",
            "description": "<p>每页显示条数</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"list\": [\n\n            ],\n            \"totalPage\": 4\n        },\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/order.js",
    "groupTitle": "Order"
  },
  {
    "type": "get",
    "url": "/order/hlist?pageNum=2&pageSize=2",
    "title": "获取所有菜品",
    "name": "OrderList",
    "group": "Order",
    "description": "<p>所有历史订单查询</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageNum",
            "defaultValue": "1",
            "description": "<p>页数</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": true,
            "field": "pageSize",
            "defaultValue": "10",
            "description": "<p>每页显示条数</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"list\": [\n\n            ],\n            \"totalPage\": 4\n        },\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/order.js",
    "groupTitle": "Order"
  },
  {
    "type": "post",
    "url": "/order/lists",
    "title": "获取订单列表",
    "name": "OrderLists",
    "group": "Order",
    "description": "<p>根据订单号查询订单详情</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "Array",
            "optional": false,
            "field": "orderNumbers",
            "description": "<p>订单号数组</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求参数",
          "content": "{\n  \"orderNumbers\": [1549935550183001, 1549935696825003]\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "请求成功",
          "content": "{\n        \"code\": 1,\n        \"data\": [\n            {\n                \"status\": 0,\n                \"list\": [\n                    {\n                        \"count\": 4,\n                        \"menuDetail\": {\n                            \"_id\": \"5c552cedd4df7a6d4fa647c8\",\n                            \"name\": \"玉米排骨\",\n                            \"cid\": \"5c4ea70c79b6e11c20038549\",\n                            \"price\": \"22\",\n                            \"desc\": \"123\",\n                            \"img\": \"https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3588928876,2268038028&fm=85&app=57&f=JPEG?w=121&h=75&s=0BA867874E5A55CA560A5A680300F078\",\n                            \"updateTime\": \"2019-02-02T05:38:53.186Z\"\n                        }\n                    },\n                    {\n                        \"count\": 3,\n                        \"menuDetail\": {\n                            \"_id\": \"5c553a44d4df7a6d4fa647cc\",\n                            \"name\": \"哈哈哈\",\n                            \"cid\": \"5c4e994879b6e11c20038544\",\n                            \"price\": \"11\",\n                            \"desc\": \"22\",\n                            \"img\": \"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549099410484&di=6964b067f91767e91af29004cb7cdab6&imgtype=0&src=http%3A%2F%2Fwww.lovehhy.net%2Flib%2Fimg%2F3201539%2F754492_1213314363.jpg\",\n                            \"updateTime\": \"2019-02-02T06:35:48.951Z\"\n                        }\n                    }\n                ],\n                \"remarks\": \"\",\n                \"_id\": \"5c6223be8c91ee206c66445f\",\n                \"orderNum\": 1549935550183001,\n                \"tableNum\": \"5c507b5cc212780b0f940951\",\n                \"amount\": 121,\n                \"realAmount\": 121,\n                \"created\": \"2019-02-12T01:39:10.194Z\",\n                \"updatedAt\": \"2019-02-12T01:39:10.194Z\"\n            },\n            {\n                \"status\": 2,\n                \"list\": [\n                    {\n                        \"count\": 1,\n                        \"menuDetail\": {\n                            \"_id\": \"5c50038be7877122a8f2cc5b\",\n                            \"name\": \"红烧肉\",\n                            \"cid\": \"5c4e9b2079b6e11c20038545\",\n                            \"price\": \"25.00\",\n                            \"desc\": \"好吃\",\n                            \"img\": \"http://47.104.160.105:3030/upload/d615081ef9c27de2a14a003e8a455212.jpg\",\n                            \"updateTime\": \"2019-02-01T11:51:36.566Z\"\n                        }\n                    },\n                    {\n                        \"count\": 1,\n                        \"menuDetail\": {\n                            \"_id\": \"5c51c5b409bf6513b2d11c17\",\n                            \"name\": \"🐜蚂蚁上树\",\n                            \"cid\": \"5c4e9b2079b6e11c20038545\",\n                            \"price\": \"18.00\",\n                            \"desc\": \"暂无描述\",\n                            \"img\": \"http://47.104.160.105:3030/upload/1548867556106.png\",\n                            \"updateTime\": \"2019-01-30T16:59:17.513Z\"\n                        }\n                    }\n                ],\n                \"remarks\": \"\",\n                \"_id\": \"5c6224508c91ee206c664464\",\n                \"orderNum\": 1549935696825003,\n                \"tableNum\": \"5c507b5cc212780b0f940951\",\n                \"amount\": 43,\n                \"realAmount\": 43,\n                \"created\": \"2019-02-12T01:41:36.831Z\",\n                \"updatedAt\": \"2019-02-18T13:27:01.493Z\"\n            }\n        ],\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/order.js",
    "groupTitle": "Order"
  },
  {
    "type": "post",
    "url": "/order/add",
    "title": "订单添加(客户端)",
    "name": "orderAdd",
    "group": "Order",
    "description": "<p>添加订单</p>",
    "parameter": {
      "examples": [
        {
          "title": "请求参数:",
          "content": "{\n    \"tableNum\": \"5c507b5cc212780b0f940951\",\n    \"list\": [\n        {\n            \"menuItem\":\"5c50038be7877122a8f2cc5b\", // 菜单_id\n            \"count\":2 // 数量\n        }\n    ],\n    \"amount\":20\n}",
          "type": "json"
        }
      ],
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "tableNum",
            "description": "<p>桌号_id</p>"
          },
          {
            "group": "params",
            "type": "Array",
            "optional": false,
            "field": "list",
            "description": "<p>点餐列表</p>"
          },
          {
            "group": "params",
            "type": "Number",
            "optional": false,
            "field": "amount",
            "description": "<p>点餐金额</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "添加成功",
          "content": "{\n    \"code\": 1,\n    \"data\": {\n        \"orderNum\": 3,\n        \"tableNum\": \"5c507b5cc212780b0f940951\",\n        \"status\": 0,\n        \"list\": [\n            {\n                \"menuItem\": \"5c50038be7877122a8f2cc5b\",\n                \"count\": 2\n            }\n        ],\n        \"amount\": 20\n    },\n    \"msg\": \"请求成功\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/order.js",
    "groupTitle": "Order"
  },
  {
    "type": "post",
    "url": "/table/add",
    "title": "桌号添加",
    "name": "tableAdd",
    "group": "Table",
    "description": "<p>添加桌号</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>桌号id</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "添加成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"categoryId\": \"5c4be6f9751906b9606218c8\"\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "未登录",
          "content": "{\n    \"code\": -1,\n    \"errMsg\": \"请先登录\"\n}",
          "type": "json"
        },
        {
          "title": "重复添加",
          "content": "{\n    \"code\": 0,\n    \"errMsg\": \"当前桌号已存在, 请勿重复添加\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/table.js",
    "groupTitle": "Table"
  },
  {
    "type": "post",
    "url": "/table/delete",
    "title": "桌号删除",
    "name": "tableDelete",
    "group": "Table",
    "description": "<p>桌号删除</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>桌号id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "删除成功",
          "content": "{\n        \"code\": 1,\n        \"data\": \"删除成功\",\n        \"msg\": \"请求成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "桌号不存在",
          "content": "{\n        \"code\": 0,\n        \"errMsg\": \"当前桌号不存在\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/table.js",
    "groupTitle": "Table"
  },
  {
    "type": "get",
    "url": "/table/list",
    "title": "桌号查询",
    "name": "tableList",
    "group": "Table",
    "description": "<p>所有桌号列表查询</p>",
    "success": {
      "examples": [
        {
          "title": "添加成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"list\": [\n              {\n                  \"id\": \"5c4be1ba45b939b6a4f557b4\",\n                  \"num\": 1,\n              },\n              {\n                  \"id\": \"5c4be1ba45b939b6a4f557b5\",\n                  \"num\": 2,\n              },\n          ],\n          \"total\": 2\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/table.js",
    "groupTitle": "Table"
  },
  {
    "type": "post",
    "url": "/table/update",
    "title": "桌号修改",
    "name": "tableUpdate",
    "group": "Table",
    "description": "<p>桌号修改</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>桌号id</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"tableId\": \"5c4be6f9751906b9606218c8\"\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "未登录",
          "content": "{\n    \"code\": -1,\n    \"errMsg\": \"请先登录\"\n}",
          "type": "json"
        },
        {
          "title": "添加失败",
          "content": "{\n    \"code\": 0,\n    \"errMsg\": \"当前桌号已存在\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/table.js",
    "groupTitle": "Table"
  },
  {
    "type": "post",
    "url": "/user/del",
    "title": "用户删除",
    "name": "del",
    "group": "User",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n        code: 1,\n        data: '删除成功',\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "{\n        code: 0,\n        data: '',\n        errMsg: '没有权限'\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/user.js",
    "groupTitle": "User"
  },
  {
    "type": "get",
    "url": "/user/inquire",
    "title": "所有用户信息查询",
    "name": "inquire",
    "group": "User",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "number",
            "optional": false,
            "field": "pageNum",
            "description": "<p>查询起始页</p>"
          },
          {
            "group": "params",
            "type": "number",
            "optional": false,
            "field": "pageSize",
            "description": "<p>显示条数</p>"
          }
        ]
      }
    },
    "description": "<p>用户信息查询需要管理员权限</p>",
    "header": {
      "examples": [
        {
          "title": "Header-Example:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n    \"code\": 1,\n    \"data\": {\n        \"userLists\": [\n            {\n                \"role\": \"1\",\n                \"avatar\": \"/avatar/default.jpg\",\n                \"_id\": \"5c4c097bb34a92965477502c\",\n                \"username\": \"qqq\",\n                \"password\": \"b387c9b0483f7daa982a95f72d685fe33fab29d538887a7180957ccedd725d13\"\n            },\n            {\n                \"role\": \"1\",\n                \"avatar\": \"/avatar/default.jpg\",\n                \"_id\": \"5c4c0981b34a92965477502d\",\n                \"username\": \"www\",\n                \"password\": \"d46cc2563f4edb997cc2c82971d8190ec176e1c7440a2903054a87e2bea1974a\"\n            }\n        ],\n        \"totalPage\": 7\n    }\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/user.js",
    "groupTitle": "User"
  },
  {
    "type": "post",
    "url": "/user/login",
    "title": "用户登录",
    "name": "login",
    "group": "User",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n      \"code\": 1,\n      \"data\": {\n          \"role\": \"0\",\n          \"avatar\": \"/avatar/default.jpg\",\n          \"username\": \"admin\",\n          \"id\": \"5c4445b4975a0b56e0e462dc\",\n          \"token\": \"xxx\"\n      }\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "{\n   code: 0,\n   errMsg: '登录失败'\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/user.js",
    "groupTitle": "User"
  },
  {
    "type": "post",
    "url": "/user/reg",
    "title": "用户注册",
    "name": "reg",
    "group": "User",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n        \"code\": 1,\n        \"data\": \"注册成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "{\n        \"code\": 0,\n        \"data\": \"注册失败\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/user.js",
    "groupTitle": "User"
  },
  {
    "type": "post",
    "url": "/user/update",
    "title": "用户修改",
    "name": "update",
    "group": "User",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>用户密码</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "avatar",
            "description": "<p>用户头像URL</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>被修改人id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n    \"code\": 1,\n    \"data\": \"修改成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "{\n    code: 0,\n    data: '',\n    errMsg: '没有权限!'\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/user.js",
    "groupTitle": "User"
  },
  {
    "type": "get",
    "url": "/user/info",
    "title": "用户信息查询",
    "name": "userinfo",
    "group": "User",
    "description": "<p>用户信息查询需要用户登录</p>",
    "header": {
      "examples": [
        {
          "title": "Header-Example:",
          "content": "{\n   \"Authorition\": \"xxxxxxxxxxxx\"\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n        \"code\": 1,\n        \"data\": {\n            \"role\": \"0\",\n            \"avatar\": \"/avatar/default.jpg\",\n            \"username\": \"xiaoqiang\",\n            \"id\": \"5c4b2e2bfae6477ad8cfb41e\"\n        }\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/user.js",
    "groupTitle": "User"
  }
] });
